package chapter11

/**
  * @Copyright: Shanghai Definesys Company.All rights reserved.
  * @Description:
  * @author: chuhaitao
  * @since: 2019/1/13 18:42
  * @history:
  *          1.2019/1/13 created by chuhaitao
  */
object ListDemo {

  def main(args: Array[String]): Unit = {
    // scala.collection.immutable.List，默认在包对象scala的声明
    // 默认是不可变的，如果需要可变的则需要 listBuffer
    var list01 = List(1, "2")

    var list06=12::12::list01::Nil


    var list05=12::12::list01:::Nil
    var list07=12::12::list01

    println("---list05:"+list05)
    println("---list06:"+list06)
    println("---list07："+list07)









  }

}
